\hypertarget{class_mathematica_translator_1_1_m_t_matrix}{
\section{\-Mathematica\-Translator\-:\-:\-M\-T\-Matrix \-Class \-Reference}
\label{class_mathematica_translator_1_1_m_t_matrix}\index{\-Mathematica\-Translator\-::\-M\-T\-Matrix@{\-Mathematica\-Translator\-::\-M\-T\-Matrix}}
}


{\ttfamily \#include $<$\-M\-T\-Matrix.\-hpp$>$}

\-Inheritance diagram for \-Mathematica\-Translator\-:\-:\-M\-T\-Matrix\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_mathematica_translator_1_1_m_t_matrix}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_matrix_ab8541040a2b82259330afe24ba995131}{
{\bfseries \-M\-T\-Matrix} (\-Matrix $\ast$matrix)}
\label{class_mathematica_translator_1_1_m_t_matrix_ab8541040a2b82259330afe24ba995131}

\item 
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_matrix_ac2c7a9633d11ca5da6661d19220729fa}{generate\-Code} (\hyperlink{class_mathematica_translator_1_1_code_gen_context}{\-Code\-Gen\-Context} \&context)
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_matrix_a8345d777dd494a6b22c2cd6cabd1d4ff}{
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_matrix_a8345d777dd494a6b22c2cd6cabd1d4ff}{get\-Type} ()}
\label{class_mathematica_translator_1_1_m_t_matrix_a8345d777dd494a6b22c2cd6cabd1d4ff}

\begin{DoxyCompactList}\small\item\em \-Get the best type that fits the underlying expression. \end{DoxyCompactList}\item 
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_matrix_a7c332ec5eb1a5ee5873bf007f048b454}{get\-Number\-Of\-Elements} ()
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_matrix_ab4403ee137b6b793b10696947e1cfcb2}{
virtual int {\bfseries get\-Class\-Type} ()}
\label{class_mathematica_translator_1_1_m_t_matrix_ab4403ee137b6b793b10696947e1cfcb2}

\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_matrix_ae7910fe54360fc04e4fe538ebfe66707}{
\-Matrix $\ast$ {\bfseries matrix}}
\label{class_mathematica_translator_1_1_m_t_matrix_ae7910fe54360fc04e4fe538ebfe66707}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Matrix representation. \-Direct to \-C\-U\-D\-A translation. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{class_mathematica_translator_1_1_m_t_matrix_ac2c7a9633d11ca5da6661d19220729fa}{
\index{\-Mathematica\-Translator\-::\-M\-T\-Matrix@{\-Mathematica\-Translator\-::\-M\-T\-Matrix}!generate\-Code@{generate\-Code}}
\index{generate\-Code@{generate\-Code}!MathematicaTranslator::MTMatrix@{\-Mathematica\-Translator\-::\-M\-T\-Matrix}}
\subsubsection[{generate\-Code}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string $\ast$ \-Mathematica\-Translator\-::\-M\-T\-Matrix\-::generate\-Code (
\begin{DoxyParamCaption}
\item[{{\bf \-Code\-Gen\-Context} \&}]{context}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_mathematica_translator_1_1_m_t_matrix_ac2c7a9633d11ca5da6661d19220729fa}
\-Main method to print the result of translating into \-C++ from \-Mathematica 
\begin{DoxyParams}{\-Parameters}
{\em context} & current variable context \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
allocated string with translation 
\end{DoxyReturn}


\-Reimplemented from \hyperlink{class_mathematica_translator_1_1_m_t_expression_ae60846398fde87b09c242b5ea263586e}{\-Mathematica\-Translator\-::\-M\-T\-Expression}.

\hypertarget{class_mathematica_translator_1_1_m_t_matrix_a7c332ec5eb1a5ee5873bf007f048b454}{
\index{\-Mathematica\-Translator\-::\-M\-T\-Matrix@{\-Mathematica\-Translator\-::\-M\-T\-Matrix}!get\-Number\-Of\-Elements@{get\-Number\-Of\-Elements}}
\index{get\-Number\-Of\-Elements@{get\-Number\-Of\-Elements}!MathematicaTranslator::MTMatrix@{\-Mathematica\-Translator\-::\-M\-T\-Matrix}}
\subsubsection[{get\-Number\-Of\-Elements}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string $\ast$ \-Mathematica\-Translator\-::\-M\-T\-Matrix\-::get\-Number\-Of\-Elements (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_mathematica_translator_1_1_m_t_matrix_a7c332ec5eb1a5ee5873bf007f048b454}
\-Get the number of elements in underlying expression \begin{DoxyNote}{\-Note}
for primitves returns 1, for vector/matrix returns number of elements 
\end{DoxyNote}
\begin{DoxyReturn}{\-Returns}
number of elements as string 
\end{DoxyReturn}


\-Reimplemented from \hyperlink{class_mathematica_translator_1_1_m_t_expression_a47c66480bdb9dca746c79b3d098fb24e}{\-Mathematica\-Translator\-::\-M\-T\-Expression}.



\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-M\-T\-Matrix.\-hpp\item 
\-M\-T\-Matrix.\-cpp\end{DoxyCompactItemize}
